//
//  HZOrderConfirmVCModel.h
//  app
//
//  Created by 刘华舟 on 15/5/6.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HZOrderCellModel.h"
#import "HZOrderHeaderViewModel.h"
#import "HZOrderByerAddressModel.h"

@interface HZOrderConfirmVCModel : NSObject

@property (assign, nonatomic) BOOL noMoreData;
@property (strong, nonatomic) NSString *message;
@property (strong, nonatomic) NSString *timestamp;

@property (strong, nonatomic) NSDictionary *defaultAdd;

//default_add 地址信息
@property (strong, nonatomic) HZOrderByerAddressModel *addressModel;


//金额信息
@property (strong, nonatomic) NSString *originalPrice;
@property (strong, nonatomic) NSString *totalPrices;
@property (strong, nonatomic) NSString *postage;

//支付方式信息
@property (strong, nonatomic) NSArray *pay;
@property (strong, nonatomic) NSString *payTypeName;
@property (strong, nonatomic) NSString *payTypeNum;

//配送信息
@property (strong, nonatomic) NSDictionary *delivery;
@property (strong, nonatomic) NSString *dispatchType;

//发票信息
@property (strong, nonatomic) NSDictionary *invoice;
@property (assign, nonatomic, getter=isSupportInv) BOOL supportInv;
@property (assign, nonatomic, getter=isNeedBill) BOOL needBill;
@property (strong, nonatomic) NSString *billTitle;
@property (strong, nonatomic) NSString *billTitleNum;
@property (strong, nonatomic) NSString *billTypeType;
@property (strong, nonatomic) NSString *billTypeName;

//买家留言
@property (strong, nonatomic) NSString *buyerMessage;

@property (strong, nonatomic) NSString* splitOrders; //是否需要拆分订单， 0 不用拆分订单 ，>0 表示需要拆分订单，数字表示是拆分后的订单数

@property (strong, nonatomic) NSString *storehouse; //如果storehouse不为空，则这个订单支持自提

@property (strong, nonatomic) NSString* houseid; //#用户当前所选房屋ID,下订单页面默认收货房屋
@property (strong, nonatomic) NSString* cmid; //#用户当前所选小区ID,下订单页面默认收货小区
@property (strong, nonatomic) NSString* cmname; //#用户当前所选小区名称,下订单页面用来显示的默认收货小区


@property (strong, nonatomic) NSDictionary *gold;
//{
//    "uid": 1,
//    "nickname": "小小营养师",
//    "gender": 0,
//    "face": "http://192.168.0.123/health/pic/u/s/s1.jpg"
//},

//支付方式
@property (strong, nonatomic) NSArray *payTypeList;
//{
//    "name": "支付宝",
//    "type": 0
//}

@property (strong, nonatomic) HZOrderHeaderViewModel *orderHeaderModel;
@property (strong, nonatomic) NSArray *thinModelArray;

@property (strong, nonatomic) NSArray *goodsArray;

@property (strong, nonatomic) NSArray *customerSerArray;

+ (instancetype)modelWithDictionary:(NSDictionary *)dict;
- (instancetype)initModelWithDictionary:(NSDictionary *)dict;

//切换配送方式
- (void)switchDispatch:(NSDictionary *)delivery pay:(NSDictionary *)pay;
//更改发票信息
- (void)switchBillInfo:(NSDictionary *)invocie;
//更改留言信息
- (void)switchOrderBuyerMessage:(NSString *)message;
//更改收货方式
- (void)switchDefaultAddressWithModel:(HZOrderByerAddressModel *)model;

@end
